package com.zxy.supplier_system.server.configuration

import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping

@Configuration
class CustomWebMvcRegistrations : WebMvcRegistrations {

    override fun getRequestMappingHandlerMapping(): RequestMappingHandlerMapping {
        val clientVersionHandlerMapping = ClientVersionHandlerMapping()
        clientVersionHandlerMapping.order = 0
        return clientVersionHandlerMapping
    }
}